home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
touch_the_bubbles.swf
/
scripts
/
DefineSprite_53_ball
/
frame_4
/
DoAction.as
Wrap
Text File
|
2008-03-12
|
805b
|
32 lines
if(_root.pss != 1)
{
_X = _X + xs;
_Y = _Y + ys;
_parent.shadows[_name]._x = _X;
_parent.shadows[_name]._y = _Y;
if(_X < 0 + scale or _Y < 0 + scale or _X > 520 - scale or _Y > 520 - scale)
{
_parent.obj--;
_root.life.masky._xscale -= 8;
if(_root.life.masky._xscale < 0)
{
if(_root.gameover != 1)
{
_root.attachMovie("nolifeleft","nolifeleft",2);
unloadMovie(_root.addstuff);
_root.gameover = 1;
}
}
removeMovieClip(_parent.shadows[_name]);
ck = 0;
gotoAndPlay(9);
}
if(this.hitTest(_root._xmouse,_root._ymouse,1) == true)
{
_parent.obj--;
removeMovieClip(_parent.shadows[_name]);
ck = 0;
gotoAndPlay(6);
}
}